home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 23
/
AMIGAplus Sonderheft 23 (2000)(Falke)(DE)[!].iso
/
Updates
/
AddOns
/
VowaData
/
Register
/
Register-VorwahlenGui
next >
Wrap
Text File
|
1999-12-30
|
4KB
|
172 lines
/*
**
** $VER: RegisterVorwahlenGUI © Yves Grabowsky
**
*/
/* add libs */
call addlib("tritonrexx.library",0,-30)
call addlib("rexxtricks.library",0,-30)
call addlib("rexxreqtools.library",0,-30)
/* options */
OPTIONS RESULTS
/* pos var */
pos = "rt_reqpos=reqpos_centerscr"
/* define lists */
rate.0 = 6
rate.1 = "1"
rate.2 = "2"
rate.3 = "3"
rate.4 = "4"
rate.5 = "5"
rate.6 = "6"
/* create app */
app = TR_CreateApp('TRCA_Name RegisterVorwahlenGUI')
/* define window */
win = WindowID('1'),
WindowTitle('Registrierung für VorwahlenGUI'),
ScreenTitle('RegisterVorwahlenGUI © Yves Grabowsky'),
WindowPosition('TRWP_Centerscreen'),
VertGroupA,
Space,
NamedSeparator('Registrierung für VorwahlenGUI'),
Space,
HorizGroupA,
Space,
GroupBox,
HorizGroupA,
Space,
VertGroupA,
Space,
CenteredText("Danke das Sie sich registrieren lassen möchten!"),
Space,
TextN("VorwahlenGUI das Telefonbuch für Ihren Amiga!"),
Space,
Endgroup,
Space,
Endgroup,
Space,
Endgroup,
Space,
HorizGroupA,
Space,
TextN('Name: '),
Space,
StringGadget('','5'),
Space,
Endgroup,
Space,
HorizGroupA,
Space,
TextN('Emailaddress:'),
Space,
StringGadget('','6'),
Space,
Endgroup,
Space,
HorizGroupA,
Space,
TextN('Street: '),
Space,
Stringgadget('','7'),
Space,
Endgroup,
Space,
HorizGroupA,
Space,
TextN('City: '),
Space,
StringGadget('','8'),
Space,
Endgroup,
Space,
HorizGroupA,
Space,
TextN('Country: '),
Space,
StringGadget('','9'),
Space,
Endgroup,
Space,
HorizGroupA,
Space,
TextN('How do you like it:'),
Space,
CycleGadget(rate,'0','10'),
Space,
Endgroup,
Space,
HorizGroupA,
Space,
Button('Register me','11'),
Space,
Button('Cancel','12'),
Space,
Endgroup,
Space,
Endgroup,
Endproject
/* open project */
project = TR_OpenProject(app,win)
DO WHILE exit ~= 1
CALL TR_Wait(app,'')
DO WHILE TR_HandleMsg(app,event)
IF event.trm_id = '11' then do
exit = 1
end
IF event.trm_class = "TRMS_CLOSEWINDOW" then do
signal quit
end
IF event.trm_id = '12' then do
signal quit
end
end
end
/* read values */
name = TR_GetAttribute(project,'5','TROB_String')
email = TR_GetAttribute(project,'6','TROB_String')
street = TR_GetAttribute(project,'7','TROB_String')
city = TR_GetAttribute(project,'8','TROB_String')
country = TR_GetAttribute(project,'9','TROB_String')
rating = TR_GetAttribute(project,'10','TRAT_Value')
rating = rating+1
reg.0 = 10
reg.1 = "Hallo Michael!"
reg.2 = "Ich möchte mich als Benutzer von VorwahlenGUI registrieren lassen!"
reg.3 = ""
reg.4 = "Name:" name
reg.5 = "eMailaddress:" email
reg.6 = "Street:" street
reg.7 = "City:" city
reg.8 = "Country:" country
reg.9 = "My rating:" rating
reg.10 = "Program: VorwahlenGUI"
CALL WRITEFILE('T:register.tmp',reg)
IF show('P','YAM') then do
ADDRESS YAM
MAILWRITE
WRITESUBJECT "VorwahlenGUI-Registrierung"
WRITETO "m.luense@t-online.de"
WRITELETTER "T:register.tmp"
WRITEQUEUE
end
ELSE do
call rtezrequest("Sie müssen erst Yam starten!!!",,"Error...",pos)
end
quit:
CALL TR_CloseProject(project)
CALL TR_DeleteApp(app)
exit